<?php
    //include_once 'init.php';
    if(!empty($_GET)){
        $id=$_GET['id'];
            $result=del($GLOBALS['c'],$id);
            if($result>0){
                echo '<script>alert("删除成功");location.href="index.php?c=admin&a=list&admin=1";</script>';die;
            }else{
                echo '<script>alert("删除失败");history.go(-1);</script>';die;
            }
    }
?>